package com.github.horse.gateway.controller;

import com.github.horse.gateway.config.DynamicConfig;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoController {

    @Autowired
    private DynamicConfig dynamicConfig;

    @RequestMapping("/demo")
    public String demo(){
        //return dynamicConfig.getModuleName();
        return dynamicConfig.getModuleName() + "------" + dynamicConfig.getMyGateway();
    }
}
